<?php
my_component_load('testing' , false);
my_component_load('paging' , false);   
my_component_load('pelatihan_realisasi' );
$task = isset($_GET['task']) ? $_GET['task'] : ""; 
$id = isset( $_GET['id'] ) ? $_GET['id']:  0;
$modulname="Diklat _BN_ Realisasi Pelatihan" ;

if($_SERVER['REQUEST_METHOD'] == "POST"){
	switch($task){
		case "detail": 
			set_realisasi_pelatihan($id,$_POST['a']);
			my_direct('index.php?com=pelatihan_realisasi');			
			break;
	}
}else{
	switch($task){
		case "detail":
			load_facebox_script();
			$content = detail_peserta_pelatihan($id);
			$pagename =$modulname." _BN_ Daftar Peserta";
			break;	
		case "cetak":	
			@ob_end_clean(); 
			echo'<pre>';
			echo print_plain($id);
			exit;
		default:
			load_facebox_script();
			$content =list_pelatihan();
			$pagename=$modulname ;
			break;
	}
}

generate_my_web( $content , $pagename );